<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{route}}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>
<script>
export default {
    computed:{
        route(){
            let matched=this.$route.matched
            return matched[matched.length-1].meta.title!=='首页'? matched[matched.length-1].meta.title :''
        }
    }
};
</script>